/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package weather;

import com.itextpdf.text.Document;
import com.itextpdf.text.DocumentException;
import com.itextpdf.text.Paragraph;
import com.itextpdf.text.pdf.PdfWriter;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Raider
 */
public class FileManager {
    
    public void generatePDF(){
        try {
            FileOutputStream fos= new FileOutputStream("Order.pdf");
            Document doc=new Document();
            PdfWriter.getInstance(doc, fos);
            doc.add(new Paragraph("Hola Cergio"));
            doc.close();
        } catch (DocumentException ex) {
            Logger.getLogger(FileManager.class.getName()).log(Level.SEVERE, null, ex);
        } catch (FileNotFoundException ex) {
            Logger.getLogger(FileManager.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
}
